import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:study_demo/api/api.dart';
import 'package:study_demo/api/bean.dart';
import 'package:study_demo/base/BaseController.dart';

class QueryBoardCodeController extends BaseController {
  final boardCode = ''.obs;

  TextEditingController _textEditingController = TextEditingController();

  TextEditingController get textEditingController => _textEditingController;

  @override
  void onInit() {
    super.onInit();
  }

  queryBoardCode() {
    var gameId = int.parse(textEditingController.text);
    api.getYzPlus(RequestModel(game_detail, gameDetailInfo(gameId)),
        success: (json) {
      print('json: $json');
    });
  }
}
